#ifndef __SLOTHTTPD_NGX_PARSER_NGX_STRING_HPP__
#define __SLOTHTTPD_NGX_PARSER_NGX_STRING_HPP__



#ifdef __cplusplus
#  include <cstddef>
#  include <cstdint>
#else
#  include <stddef.h>
#  include <stdint.h>
#endif


typedef int                             ngx_int_t;
typedef unsigned int                    ngx_uint_t;
typedef unsigned char                   u_char;

#define NGX_UNESCAPE_URI       1
#define NGX_UNESCAPE_REDIRECT  2



#ifdef __cplusplus
extern "C" {
#endif

    void
    ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type);

    ngx_int_t
    ngx_strcasecmp(u_char *s1, u_char *s2);

    ngx_int_t
    ngx_strncasecmp(u_char *s1, u_char *s2, size_t n);

    u_char *
    ngx_strnstr(u_char *s1, char *s2, size_t len);

    u_char *
    ngx_strstrn(u_char *s1, char *s2, size_t n);

    u_char *
    ngx_strcasestrn(u_char *s1, char *s2, size_t n);

    u_char *
    ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n);

    ngx_int_t
    ngx_rstrncmp(u_char *s1, u_char *s2, size_t n);

    ngx_int_t
    ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n);



#ifdef __cplusplus
}
#endif


#endif